package com.css.dzj.zfjg.modules.jcdx.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Objects;
//联合监管检查对象表
@Entity
@Table(name = "JG_LHJG_JCDX", schema = "DZJZFJG", catalog = "")
public class JgLhjgJcdxEntity {
    private String taskno;
    private String objectname;
    private String enterprisecreditcode;
    private String objectType;
    private String certificateType;
    private String certificateContent;
    private String objectMark;
    private String id;

    @Basic
    @Column(name = "taskno")
    public String getTaskno() {
        return taskno;
    }

    public void setTaskno(String taskno) {
        this.taskno = taskno;
    }

    @Basic
    @Column(name = "objectname")
    public String getObjectname() {
        return objectname;
    }

    public void setObjectname(String objectname) {
        this.objectname = objectname;
    }

    @Basic
    @Column(name = "enterprisecreditcode")
    public String getEnterprisecreditcode() {
        return enterprisecreditcode;
    }

    public void setEnterprisecreditcode(String enterprisecreditcode) {
        this.enterprisecreditcode = enterprisecreditcode;
    }

    @Basic
    @Column(name = "object_Type")
    public String getObjectType() {
        return objectType;
    }

    public void setObjectType(String objectType) {
        this.objectType = objectType;
    }

    @Basic
    @Column(name = "certificate_Type")
    public String getCertificateType() {
        return certificateType;
    }

    public void setCertificateType(String certificateType) {
        this.certificateType = certificateType;
    }

    @Basic
    @Column(name = "certificate_Content")
    public String getCertificateContent() {
        return certificateContent;
    }

    public void setCertificateContent(String certificateContent) {
        this.certificateContent = certificateContent;
    }

    @Basic
    @Column(name = "object_Mark")
    public String getObjectMark() {
        return objectMark;
    }

    public void setObjectMark(String objectMark) {
        this.objectMark = objectMark;
    }

    @Id
    @Column(name = "Id")
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.zfjg.common.util.SnowflakeId")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgLhjgJcdxEntity that = (JgLhjgJcdxEntity) o;
        return Objects.equals(taskno, that.taskno) &&
                Objects.equals(objectname, that.objectname) &&
                Objects.equals(enterprisecreditcode, that.enterprisecreditcode) &&
                Objects.equals(objectType, that.objectType) &&
                Objects.equals(certificateType, that.certificateType) &&
                Objects.equals(certificateContent, that.certificateContent) &&
                Objects.equals(objectMark, that.objectMark) &&
                Objects.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(taskno, objectname, enterprisecreditcode, objectType, certificateType, certificateContent, objectMark, id);
    }
}
